<?php
	
	class CommentController extends Controller{
		private $model;
		public function __init(){
			$this->model = K('Comment');
		}
		/**
		 * 显示所有文章的回复
		 */
		 public function index(){
		 	$count = $this->model->count();
			$page = new Page($count,14,10);
			$this->assign('page',$page->show(1));
			$rows = $this->model->findAll($page->limit());
//			var_dump($rows);
			$this->assign('allComment',$rows);
		 	$this->display();
		 }
		 
		 /**
		  * 删除指定的评论
		  */
		
		
	}
